Return to doc.sitecore.com

Documentation

 

1.  Description

The Link Web Control is a visual control used for displaying links that are stored in the Sitecore content tree.  

Please refer to the Web Controls article for more information about creating Web Controls.

 

2.  Installation Guide

The ‘Link’ Web Control is distributed as a standard Sitecore package; hence in order to start using it, you should install the package. Please  refer to the 'Installing Modules and Packages' article if you are not familiar with the standard Sitecore Packager tool.

After the package installation, you will see the Link Web Control in the list of renderings.

Thus, you will be able to place it on a (sub)layout or a link via placeholder like any other rendering.  

No modifications are required to use this Web Control, but you can modify the Link’s setting (for example, tag prefix) by editing the following Item:

/sitecore/layout/Renderings/Link

 

3.  User Manual

The ‘Link’ is a common Web Control, thus you will be able to work with it like with any other rendering.   

To set control properties, double-click it and you’ll see the configuration window. Open the Attributes tab and set properties as described in the example below.  

 

Valid Attributes:   

 

TextField

Type: System.String

Property value:

The name of the field that contains the link’s text.

 

LinkField

Type: System.String

Property value:

The name of the field that contains the link.

 

TextClass

Type: System.String

Property value:

The CSS class name for the link’s text

 

TextStyle

Type: System.String

Property value:

The CSS style for the link’s text.